<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="com.javapig.util.*,com.dd.*,java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

    
<%@ page import="com.javapig.util.*"%>
<%@ page import="com.dd.exception.*" %>
<%@ page import="java.util.*" %>
<%@ page import="com.dd.*" %>
<%@ page import="java.util.ArrayList" %>

<%@ include file="global.jsp" %> 

<%
boolean bError = false;
int projectID = ParamUtils.getIntParameter(request, "XiangMuID", -1);
//删除用户
XiangMu currentXiangMu = null;
boolean bUserIsAuthorizedForThisProject = false;
if(projectID != -1)
{
	try
	{
		currentXiangMu = new XiangMu(projectID);
		bUserIsAuthorizedForThisProject = currentXiangMu.isAuthorizationForThisProject(pageUser.getId());
		if(pageUser.getDengJi() == SysGlobals.C_CaiGouYuan)
		{
			bUserIsAuthorizedForThisProject = false;
		}
	}
	catch(XiangMuNotFoundException ex)
	{
		bError = true;
	}
}
else
{
	bError = true;
}
if(currentXiangMu == null)
{
	bError = true;
}
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>项目的详细信息</title>
<style type="text/css">

h3{
	background-color: #2c58ff
}

a { 
color:green; 
} 
a:hover { 
color:blue; 
position:relative; 
top:2px; 
}



</style>
</head>
<body bgcolor="#ffffff">
  <h2>项目简介:</h2>
  <%
  	if(bError == false)
  	{
  		if(bUserIsAuthorizedForThisProject == true)
  		{
  %>
  			<a href="sh_cgbj_list.jsp?XiangMuId=<%=currentXiangMu.getId()%>">查看采购类比价单</a>
			<a href="sh_shigong_list.jsp?XiangMuId=<%=currentXiangMu.getId()%>">查看施工类类比价单</a>
  		<% }%>
  		<P/>
  		<hr>
  	<%=currentXiangMu.getBeiZhu() %>
  <%
  	}
  %>
</BODY>
</HTML>
